﻿using System;

namespace Sigil.NonGeneric
{
	public partial class Emit
	{
		/// <summary>
		/// Emits IL that calls Console.WriteLine(String) for the given String if no locals are passed.
		///
		/// If any locals are passed, line is treated as a format String and local values are used in a call
		/// to Console.WriteLine(String, Object[]).
		/// </summary>
		public Emit WriteLine(String line, params Local[] locals)
		{
			InnerEmit.WriteLine(line, locals);
			return this;
		}
	}
}